package com.ruoyi.drugs.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品基本对象 drugs
 * 
 * @author wyj
 * @date 2025-02-25
 */
public class Drugs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String drugType;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 是否处方 */
    @Excel(name = "是否处方")
    private Integer prescriptionNeeded;

    /** 药品描述 */
    @Excel(name = "药品描述")
    private String description;

    /** 批准文号 */
    @Excel(name = "批准文号")
    private String approvalNumber;

    /** 冷链要求（0:不需要 1:需要） */
    private Integer coldChain;

    /** 最小单位（片/支/瓶） */
    private String unit;

    /** 规格（如0.5g*24片） */
    private String spec;

    /** 药品图片 */
    @Excel(name = "药品图片")
    private String drugImg;

    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setDrugType(String drugType) 
    {
        this.drugType = drugType;
    }

    public String getDrugType() 
    {
        return drugType;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setPrescriptionNeeded(Integer prescriptionNeeded) 
    {
        this.prescriptionNeeded = prescriptionNeeded;
    }

    public Integer getPrescriptionNeeded() 
    {
        return prescriptionNeeded;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setApprovalNumber(String approvalNumber) 
    {
        this.approvalNumber = approvalNumber;
    }

    public String getApprovalNumber() 
    {
        return approvalNumber;
    }
    public void setColdChain(Integer coldChain) 
    {
        this.coldChain = coldChain;
    }

    public Integer getColdChain() 
    {
        return coldChain;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setDrugImg(String drugImg) 
    {
        this.drugImg = drugImg;
    }

    public String getDrugImg() 
    {
        return drugImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("drugType", getDrugType())
            .append("manufacturer", getManufacturer())
            .append("unitPrice", getUnitPrice())
            .append("prescriptionNeeded", getPrescriptionNeeded())
            .append("description", getDescription())
            .append("approvalNumber", getApprovalNumber())
            .append("coldChain", getColdChain())
            .append("unit", getUnit())
            .append("spec", getSpec())
            .append("drugImg", getDrugImg())
            .toString();
    }
}
